package com.hoshiicloud.purchase.feign.hystrix;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.purchase.feign.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class HystrixUserFeignFallback implements UserService {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public Response getComOrganizationById(Long id) {
        logger.error("hoshiicloud-purchase服务Feign调用hoshiicloud-user服务{}异常:{}", "UserService.getComOrganizationById","{入参参数id:"+id+"}");
        return null;
    }

    @Override
    public Response getPlatOrganizationById(Long id) {
        logger.error("hoshiicloud-purchase服务Feign调用hoshiicloud-user服务{}异常:{}", "UserService.getPlatOrganizationById","{入参参数id:"+id+"}");
        return null;
    }

    @Override
    public Response getStoreOrganizationById(Long id) {
        logger.error("hoshiicloud-purchase服务Feign调用hoshiicloud-user服务{}异常:{}", "UserService.getStoreOrganizationById","{入参参数id:"+id+"}");
        return null;
    }

    @Override
    public Response getCompanyById(Long id) {
        logger.error("hoshiicloud-purchase服务Feign调用hoshiicloud-user服务{}异常:{}", "UserService.getCompanyById","{入参参数id:"+id+"}");
        return null;
    }

    @Override
    public Response getPlatformById(Long id) {
        logger.error("hoshiicloud-purchase服务Feign调用hoshiicloud-user服务{}异常:{}", "UserService.getPlatformById","{入参参数id:"+id+"}");
        return null;
    }

    @Override
    public Response getPlatStoreById(Long id) {
        logger.error("hoshiicloud-purchase服务Feign调用hoshiicloud-user服务{}异常:{}", "UserService.getPlatStoreById","{入参参数id:"+id+"}");
        return null;
    }
}
